home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / tnos / tnos100s / vmsmgr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-06  |  1.1 KB  |  41 lines

  1. #if !defined(VMSMGR)
  2. #define VMSMGR
  3.  
  4. #include <iostream.h>
  5. #include <iomanip.h>
  6. #include <stdlib.h>
  7. #include <stdio.h>
  8. #include <dos.h>
  9. #include <string.h>
  10. #include <alloc.h>
  11. #include "xmsmgr.hpp"
  12. #include "dmsmgr.hpp"
  13.  
  14. typedef int Boolean;
  15. #define FALSE    0
  16. #define TRUE    1
  17.  
  18. class vmsmgr : public xmsmgr, public dmsmgr    {
  19.     Boolean memory;
  20.     Boolean installed;
  21.     unsigned XMSindex;
  22. public:
  23.     vmsmgr(unsigned long the_size, unsigned long num_elements = 1);
  24.     ~vmsmgr() { }
  25.     inline operator void*() { return (void *)installed; }
  26.     inline int operator!() { return !installed; }
  27.     inline int is_installed() { return installed; }
  28.     inline unsigned char readerr() {
  29.         return ((memory == TRUE) ? xmsmgr::readerr() : dmsmgr::readerr()); }
  30.     inline void clearerr() {
  31.         xmsmgr::clearerr(); dmsmgr::clearerr(); }
  32.     char* vmserr();
  33.     Boolean inmemory() { return memory; }
  34.     unsigned long size() { return thesize; }
  35.     unsigned long elements() { return numelements; }
  36.     Boolean stow( char far* send, size_t listnum );
  37.     Boolean fetch( char far* receive, size_t listnum );
  38. };
  39.  
  40. #endif
  41.